package com.example.makerspace.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@TableName(value = "t_notice")
@Data
@Document(indexName = "t_notice")
public class NoticeDO extends BaseDO {
    @Field(name = "title", type = FieldType.Text, analyzer="ik_max_word")
    private String title;

    @Field(name = "rich_info", type = FieldType.Text, analyzer="ik_max_word")
    private String richInfo;

    @Field(name = "competition_parent_id", type = FieldType.Text, analyzer="ik_max_word")
    private Integer competitionParentId;

    @Field(name = "content", type = FieldType.Text, analyzer="ik_max_word")
    private  String content;

    @Field(name = "competition_title", type = FieldType.Text, analyzer="ik_max_word")
    private  String competitionTitle;


}
